//
//  AVObject+AVObject_Category.h
//  FunnyVideo
//
//  Created by 李鑫 on 15/10/23.
//  Copyright © 2015年 NewEggTech. All rights reserved.
//

#import <AVOSCloud/AVOSCloud.h>

typedef enum : NSUInteger {
    AVOSVideoInfoTypeContent,
    AVOSVideoInfoTypeVideoName,
    AVOSVideoInfoTypeVideoURL,
    AVOSVideoInfoTypePubUser,
    AVOSVideoInfoTypeCategory,
    AVOSVideoInfoTypeVideoId,
    AVOSVideoInfoTypeComments,
    AVOSVideoInfoTypeLikes,
    AVOSVideoInfoTypeIndex,
    AVOSVideoInfoTypeCreatedAt,
} AVOSVideoInfoType;

@interface AVObject (AVObject_Category)

- (NSString *)stringValueForKey:(NSString *)key;
- (NSNumber *)numberValueForKey:(NSString *)key;
- (NSDate *)dateValueForKey:(NSString *)key;
- (void )relationValueForClass:(NSString *)parentClass key:(NSString *)keyName syncCompletion:(void(^)(BOOL hasValue,NSArray *values))completion;
- (BOOL)boolValueForKey:(NSString *)key;

- (NSString *)stringWithAVOSVideoInfoType:(AVOSVideoInfoType)type;
+ (Class)classForVideoInfoType:(AVOSVideoInfoType)videoInfoType;
@end
